package com.qf.commons.redis.lock;

import org.redisson.api.RLock;

public class ClockThreadLocal {
    private  static ThreadLocal<RLock> rLockThreadLocal = new ThreadLocal<>();

    public static  void set(RLock rLock){
        rLockThreadLocal.set(rLock);
    }

    public  static  RLock get(){
        return  rLockThreadLocal.get();
    }

    public  static void clear(){
        rLockThreadLocal.remove();
    }
}
